package com.ryan.mdp.client.annotation;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.ryan.mdp.api.annotation.AnnoDemoService;
import com.ryan.mdp.dto.DemoDto;

@ContextConfiguration(locations = { "classpath:/context/context-mdp-client.xml" })
public class AnnoDemoClient extends AbstractJUnit4SpringContextTests {

    @Autowired
    private AnnoDemoService anno;

    @SuppressWarnings("unused")
	@org.junit.Test
    public void testSync() {
        Date result = anno.sync("123");
    }

    @org.junit.Test
    public void testSyncDynamicAnno() {
        DemoDto dto = new DemoDto();
        dto.setProp1("hello");
        anno.syncDynamicAnno(dto);
    }

}
